/**
 * @company : 版权所属 四川北星惯牌科技有限公司
 * @contact : 刘经理 19326416371
 **/
import request from '@/utils/request.js';
const user = {
	getUserInfo: (data) => { //获取用户信息
		return request('/user/userinfo', 'get')
	},
	registrationInfo: (data) => { //修改个人资料
		return request('/user/profile', 'post', data);
	},
	postCaptain: (data) => { //申请队长
		return request('/Captain/application', 'post', data);
	},
	postAuthentication: (data) => { //提交实名认证
		return request('/user/authentication', 'post', data);
	},
	getApplyInfo: () => { //获取队长入审核信息
		return request('/captain/applyInfo', 'get');
	},
	getAccount: () => { //获取金额积分数据
		return request('/user/account', 'get');
	},
	getMoneyLog: (data) => { //获取金融日志
		return request('/user/moneyLog', 'post', data);
	},
	/**
	 * 获取积分日志
	 * @param number page  页码           
	 * @param number type  类型 1收入 2支出           
	 */
	getScoreLog: (data) => { //获取积分日志
		return request('/user/scoreLog', 'post', data);
	},
	getLevelList: (data) => { //获取等级list
		return request('/level/list', 'get', data);
	},
	createSign: (data) => { //添加名片人员
		return request('/sign/create', 'post', data);
	},
	alterSign: (data) => { //修改名片人员
		return request('/sign/modify', 'post', data);
	},
	getSignList: (data) => { //获取名片列表
		return request('/sign/list', 'get', data, true);
	},
	delSign: (data) => { //删除名片
		return request('/sign/drop', 'post', data);
	},
	getExtendCode: (data) => { //获取用户推广小程序二维码
		return request('/user/invite', 'post', data, true);
	},
	follow: (data) => { //关注
		return request('/follow/follow', 'post', data, true);
	},
	cancelFollow: (data) => { //取消关注
		return request('/follow/cancel', 'post', data, true);
	},
	/**
	 * 申请代理
	 * @param      
	 */
	proxyApply: (data) => {
		return request('/user/proxyApply', 'post', data, true);
	},
	/**
	 * 申请记录
	 * @param      
	 */
	proxyApplyDetail: (data) => {
		return request('/user/proxyApplyDetail', 'post', data, true);
	},
	/**
	 * 获取邀请用户
	 * @param number page        
	 */
	proxyUserList: (data) => {
		return request('/user/proxyUserList', 'post', data, true);
	},
	/**
	 * 获取代理收益列表
	 * @param number page      
	 */
	proxyMoneyLog: (data) => {
		return request('/user/proxyMoneyLog', 'post', data, true);
	},
	/**
	 * 获取体验卡列表
	 * @param number page      
	 */
	vipInfo: (data) => { //获取会员信息
		return request('/goods/list', 'post', data, true);
	},
	/**
	 * 获取体验卡购买日志
	 * @param number page      
	 */
	purchaseRecord: (data) => { //获取会员信息
		return request('/user/purchaseRecord', 'post', data, true);
	},
	/**
	 * 获取公告列表
	 * @param number page      
	 */
	getNoticeList: (data) => { //获取会员信息
		return request('/index/noticeList', 'post', data, true);
	},
	/**
	 * 获取最新公告
	 */
	getNewNotice: (data, loading) => {
		return request('/index/notice', 'post', data, loading);
	},
	/**
	 * 获取充值列表
	 */
	getMoneyList: (data, loading) => {
		return request('/index/moneyList', 'post', data, true);
	},
	/**
	 * 无感设置用户地址信息
	 * lat: 纬度
	 * lng: 经度
	 */
	setAddress: (data, loading) => {
		return request('/user/setAddress', 'post', data, loading);
	},
	/**
	 * 获取用户列表
	 * page 
	 * status -1 全部 1 待处理  2 退单 3 服务中 4 完成
	 */
	getAssistantOrder: (data, loading) => {
		return request('/user/getAssistantOrder', 'post', data, true);
	},
	/**
	 * 取消订单
	 * id
	 */
	refundOrder: (data, loading) => {
		return request('/user/refundOrder', 'post', data, true);
	},
	/**
	 * 获取培训类别
	 */
	getCultivate: (data, loading) => {
		return request('/index/getCultivate', 'post', data, true);
	},
	/**
	 * 提交培训
	 */
	submitCultivate: (data, loading) => {
		return request('/user/cultivate', 'post', data, true);
	},

}
export default user;